package com.ruoyi.users.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.ruoyi.shanghuliebiao2.domain.CheCoupon;
import com.ruoyi.userCoupon.domain.CheUserCoupon;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 用户管理对象 che_user
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class CheUsers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 真实名字 */
    @Excel(name = "真实名字")
    private String realName;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 逻辑删除 */
    private Long deleted;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal money;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String payPassword;

    @Transient
    private List<CheCoupon> coupons;
    public List<CheCoupon> getCoupons() {
        return coupons;
    }
    public void setCoupons(List<CheCoupon> coupons) {
        this.coupons = coupons;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setPayPassword(String payPassword) 
    {
        this.payPassword = payPassword;
    }

    public String getPayPassword() 
    {
        return payPassword;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("realName", getRealName())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("deleted", getDeleted())
            .append("money", getMoney())
            .append("payPassword", getPayPassword())
            .append("createTime", getCreateTime())
            .toString();
    }
}
